function [val] = Evaluate(Individual)
    
    val = 0;
    x = 0;
    y = 0;
    
%     for i = 1:length(Individual.dots)
%         x = x+Individual.dots(i).x;
%         y = y+Individual.dots(i).y;
%     end
%     x = x/length(Individual.dots);
%     y = y/length(Individual.dots);
    for i = 1:length(Individual.dots)
    	for j = i+1: length(Individual.dots)
            val = val+Dist(Individual.dots(i), Individual.dots(j));
%         val = val+Dist(Individual.dots(i), Dot(x, y));
%         x1 = Individual.dots(i).x;
%         y1 = Individual.dots(i).y;
%         for j = i+1: length(Individual.dots)
%             
%             x2 = Individual.dots(j).x;
%             y2 = Individual.dots(j).y;
%             for k = j+1: length(Individual.dots)
%                 x3 = Individual.dots(k).x;
%                 y3 = Individual.dots(k).y;
%                 S =Area([x1 y1], [x2 y2], [x3 y3]);
%                 val = val + S;
% 
%             end
        end
    end
    
end

